package com.xzm.mybatis.dao;

import com.xzm.mybatis.bean.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 3052
 * @create 2020-08-14 10:54
 */
public interface EmployeeMapperDynamicSQL {
    //携带了哪个字段，查询条件就带上这个字段的值
    public List<Employee> getEmpsByConditionIf(Employee employee);

    public List<Employee> getEmpsByConditionTrim(Employee employee);

    public List<Employee> getEmpsByConditionChoose(Employee employee);

    public Integer updateEmp(Employee employee);

    public List<Employee> getEmpsByConditionForeach(List<Integer> ids);

    //批量保存
    public void addEmps(@Param("emps")List<Employee> emps);
}
